from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from rest_framework.serializers import Serializer
# from rest_framework.

from apps.activity.models import Gathering
from apps.users.models import User


# class UserSLZ(serializers.Serializer):
#     id = serializers.IntegerField()


class UserSLZ(ModelSerializer):
    class Meta:
        model = User
        fields = ['id']


class ActiveSerializer(ModelSerializer):
    users = UserSLZ(many=True,)

    class Meta:
        model = Gathering
        fields = '__all__'
